home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4468 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 KB

  1. Path: informatik.tu-muenchen.de!fischerj
  2. From: fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Free Cycles
  5. Date: 29 Feb 1996 11:35:56 GMT
  6. Organization: Technische Universitaet Muenchen, Germany
  7. Distribution: world
  8. Message-ID: <4h432s$hki@sunsystem5.informatik.tu-muenchen.de>
  9. References: <1996Feb15.170809.6386@imada.ou.dk> <1139.6624T1309T1361@teclink.net> <4gfpdn$elr@maureen.teleport.com>
  10. NNTP-Posting-Host: hphalle3g.informatik.tu-muenchen.de
  11. Originator: fischerj@hphalle3g.informatik.tu-muenchen.de
  12.  
  13.  
  14. In article <4gfpdn$elr@maureen.teleport.com>, sschaem@teleport.com (Stephan Schaem) writes:
  15. |> Organization: Teleport - Portland's Public Access (503) 220-1016
  16. |> Lines: 25
  17. |> Message-ID: <4gfpdn$elr@maureen.teleport.com>
  18. |> References: <1996Feb15.170809.6386@imada.ou.dk> <1139.6624T1309T1361@teclink.net>
  19. |> NNTP-Posting-Host: linda.teleport.com
  20. |> X-Newsreader: TIN [version 1.2 PL2]
  21. |> 
  22. |> rad (rad@teclink.net) wrote:
  23. |> 
  24. |> : Bjorn Reese <breese@imada.ou.dk> wrote:
  25. |> : >tim bscke (azure@people-x.people.de) wrote:
  26. |> : >>         move.l (fast)+,(chip)+          ;18 cylces
  27. |> : >>         clr.l   (chip)+                 ;24(!!!) cycles
  28. |> : >[...]
  29. |> : >>     Why ?? This seems to be really strange to me.. esp. the clr.l..
  30. |> 
  31. |> : >If my memory haven't betrayed me, clr reads the destination before
  32. |> : >clearing it. So a clr makes two chip accesses. This behaviour is
  33. |> : >also the reason why you should never use clr to clear a write-only
  34. |> : >register.
  35. |> 
  36. |> : You are correct for the 68000.  This is a good reason to stick with the 68010+
  37. |> : (if not the 68020+) where the clr instruction doesn't have this drawback.
  38. |> : Considering that the 68000's are only used in unaccelerated 500s, 600s and
  39. |> : 2000s I don't think that's really problem.
  40.  
  41. and for 68000 free cycles don't exist btw (no cache -> mem read).
  42. don't know about 68010 in loop mode.
  43.  
  44. |> 
  45. |>  clr.l    (a0)+ take 6 cycle on a 030/020 , a move.l dx,(a0)+ take 4...
  46. |>  dunno on the 040 and up... but using clr is not recomanded for speed.
  47. |>  Its nice when you dont have a reqister free or set to zero, otherwise
  48. |>  avoid.
  49. |> 
  50. |>  Stephan
  51. ------------------------------------------------------------------------
  52.    fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)   =:)
  53.  
  54.